<script lang="ts" setup>
//创建兼职
import router from "@/router";

const addJob = () => {
  router.push("addJob")
}
</script>

<template>
  <div class="manageJob">
    <div class="left">
      <div class="create-button">
        <a-button :block="true"
                  size="large"
                  style="border-radius: 0;height: 100%"
                  type="primary"
                  @click="addJob()"
        >
          添加兼职
        </a-button>
      </div>
      <div>

      </div>

    </div>
    <div class="main">
      <router-view></router-view>
    </div>
  </div>

</template>

<style scoped>
.manageJob {
  width: 100%;
  height: 800px;
  display: flex;
  padding-top: 20px;
  justify-content: center;
  box-sizing: border-box; /* 确保边框不会增加额外宽度 */
  background-color: #f5f5f5;

  .left {
    width: 200px;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* 基础的阴影样式 */

    .create-button {
      box-sizing: border-box; /* 确保边框不会增加额外宽度 */
      padding: 5px 10px;
      margin-top: 10px;
      width: 100%;
      height: 60px;
    }
  }

  .main {
    box-sizing: border-box; /* 确保边框不会增加额外宽度 */
    width: calc(100% - 520px);
    height: 100%;
    padding: 0 30px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* 基础的阴影样式 */
  }

  .right {
    width: 280px;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* 基础的阴影样式 */

    .create-button {
      box-sizing: border-box; /* 确保边框不会增加额外宽度 */
      padding: 5px 10px;
      margin-top: 10px;
      width: 100%;
      height: 60px;
    }
  }
}
</style>
